import wx

import logging

import pyciv.mainframe
import pyciv.engine

class PyCivApp(wx.App):
    def __init__(self):
        wx.App.__init__(self, False)
        engine = pyciv.engine.Engine()
        mainframe = pyciv.mainframe.MainFrame(engine)
        mainframe.Show()

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG)
    logging.info("Create App")
    app = PyCivApp()
    logging.info("Starting main loop")
    app.MainLoop()
    logging.info("Exiting main loop")
    
